"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "GoodsApplies",
      [
        {
          personId: 40,
          goodsId: 2,
          applyType: 0,
          applyNumber: 10,
          applyReason: '下周四办互动需要',
          status: 0,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          personId: 40,
          goodsId: 3,
          applyType: 0,
          applyNumber: 10,
          applyReason: '本周办理活动需要',
          status: 0,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          personId: 40,
          goodsId: 19,
          applyType: 1,
          applyNumber: 10,
          applyReason: '下周五办互动需要',
          status: 0,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          personId: 40,
          goodsId: 21,
          applyType: 1,
          applyNumber: 10,
          applyReason: '下周四办互动需要',
          status: 0,
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("GoodsApplies", null, {});
  },
};
